﻿import Router from 'vue-router'
import Index from '@let/layer_letter/Index'
import Index_main from "@let/layer_letter/index_main"
//Letter
//import Wrap_certain_layer from '@let/layer_letter/wrap_certain_layer'
//import Certain_layer_input from "@let/layer_letter/Certain_layer_input"
//import Certain_layer from "@let/layer_letter/certain_layer"
//import Wrap_login from "../layer_letter/login/wrap_login"
//import Finish_msg from "../layer_letter/login/finish_msg"
//import Finisth_msg_2 from "../layer_letter/login/finish_msg_2"
//import Finisth_msg_3 from "../layer_letter/login/finish_msg_3"
const Wrap_certain_layer = r => require.ensure([], () => r(require('@let/layer_letter/wrap_certain_layer')));
const Certain_layer_input = r => require.ensure([], () => r(require('@let/layer_letter/Certain_layer_input')));
const Certain_layer = r => require.ensure([], () => r(require('@let/layer_letter/certain_layer')));
const Wrap_login = r => require.ensure([], () => r(require('../layer_letter/login/wrap_login')));
const Finish_msg = r => require.ensure([], () => r(require('../layer_letter/login/finish_msg')));
const Finisth_msg_2 = r => require.ensure([], () => r(require('../layer_letter/login/finish_msg_2')));
const Finisth_msg_3 = r => require.ensure([], () => r(require('../layer_letter/login/finish_msg_3')));
//排信员也main
//import Letter_man from "../layer_letter/login/Letter_man"
//my_mess
import My_mess from "../layer_letter/login/My_mess"
export default new Router({
  routes: [
    {
      path: '/',
      redirect:'Index_main/Wrap_certain_layer/Certain_layer_input',
      meta: {
        //requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
      name: 'Index',
      component: Index,
      children: [
        {
          path:"Index_main",
          component:Index_main,
          //收信确认弹窗
          children:[
            {
              path:"Wrap_certain_layer",
              component:Wrap_certain_layer,
              children:[
                {
                  path:"Certain_layer",
                  component:Certain_layer
                },
                {
                  path:"Certain_layer_input",
                  component:Certain_layer_input
                }
              ]
            },
          ]
        },
      ]
      },
    {
      path: "/Wrap_login",
      component: Wrap_login,
      redirect:"/Wrap_login/Finish_msg",
      children: [
            {
              path:"Finish_msg",
              component: Finish_msg
          },
            {
                path:"Finisth_msg_2",
               component: Finisth_msg_2
            },
            {
                path: "Finisth_msg_3",
                component: Finisth_msg_3
            }
      ]
    },
    {
        path: "/My_mess",
        component: My_mess
    }
  ]
})
